import pulpcore.Stage;
import pulpcore.scene.Scene2D;
import pulpcore.animation.Timeline;
import pulpcore.image.CoreImage;
import pulpcore.sound.Sound;
import pulpcore.sprite.FilledSprite;
import pulpcore.sprite.ImageSprite;
import static pulpcore.image.Colors.*;
public class HelloWorld extends Scene2D
	{
	   public void load()
	  {
	      //Create a solid fill colored background
	      FilledSprite background = new FilledSprite(WHITE);
	      add(background);
	 
	      //Create a sprite for the logo
	      int x = Stage.getWidth() / 2;
	      int y = Stage.getHeight() / 2;
	      ImageSprite logo = new ImageSprite(CoreImage.load("Super_8_Bit_Mario.png"), x, y);
	      logo.setAnchor(ImageSprite.CENTER);
	      logo.scale(75, 75, 75, 75, 0);
	      Timeline one = new Timeline();
	 
	      //Add the background first and then the logo
	      //Sprite's are rendered in the order they are added
	      add(background);
	      add(logo);
	      one.moveTo(logo, 400, 400, 50);
	      Sound themeSong = Sound.load("Fall-02.wav");
	      themeSong.play();
	   }
	}


